package sctu.edu.java.year2016.team07.nieying.practice.Review;

import java.util.Scanner;

/**
 * Created by Administrator on 2016/6/15 0015.
 */
public class CheckLogin {
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        System.out.println("输入登入用户名:");
        String username=scan.nextLine();
        System.out.println("输入登入密码：");
       String   password=scan.nextLine();
        if (!username.equals("mr")){
            System.out.println("用户名非法！");
        } else if (!password.equals("mrsoft")){
            System.out.println("密码错误！");
        }else{
            System.out.println("登陆成功！");
        }
    }
}
